package cn.fay.chapter05;

public class OverloadingVarargs {

	static void f(Character... args)
	{
		System.out.println("first");
		for (Character character : args) 
			System.out.print(" "+ character);
			System.out.println();
		
	}
	static void f(Integer... args)
	{
		System.out.println("second");
		for (Integer integer : args) 
			System.out.print(" "+integer);
			System.out.println();
		
	}
	static void f(Long... args)
	{
		System.out.println("third");
		
	}
	public static void main(String[] args) {
		f(1,2,3,4,5);
		f('a','b','c','d');
	}

}
